package org.fnzn.service;

import org.fnzn.bean.FnglProject;
import org.fnzn.bean.FnglProjectBean;
import org.fnzn.bean.FnglProjectType;
import org.fnzn.bean.vo.User;
import org.fnzn.core.Page;
import org.fnzn.core.Result;
import tk.mybatis.mapper.entity.Condition;

import java.util.List;
import java.util.Map;

public interface FnglProjectService {
    /**查询项目**/
    public Result findFnglProject(FnglProject fnglProject, Page page);
    /**新增项目**/
    public Result insertFnglProject(FnglProject fnglProject);
    /**修改项目**/
    public Result updateFnglProject(FnglProject fnglProject);
    /**删除项目**/
    public Result deleteFnglProject(String projectId);
    /**删除多个项目**/
    public Result deleteAllFnglProject(String projcetIds);
    /**根据项目类型获取到对应的项目列表**/
    public List<FnglProject> getProjectList(String projectType);
    /**获取项目类型列表**/
    public List<FnglProjectType> getProjectType();
    /**根据项目id获取到项目图片**/
    public String[] getProjectImg(String projectId);
    /**获取到所属项目id和项目名称**/
    public Result getFnglProject(User user);
    /**录入房源时获取所有的二手房项目**/
    public Result getHouseProject();
    public List<FnglProject> findByCondition(Condition condition);
    public FnglProject findBy(String property, Object value);
    public FnglProject findById(Object id);
}
